﻿<%@ Page Language="C#" MasterPageFile="~/TownshipEnterprise/Town.master" AutoEventWireup="true"
    StylesheetTheme="Content" CodeFile="Institutions.aspx.cs" Inherits="TownshipEnterprise_Institutions"
    Title="无标题页" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <contenttemplate>                   
                    &nbsp;&nbsp;<table>                  
                        <tr>
                            <td>
                所属地区：</td> 
                            <td>
 
                        <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" DataTextField="ShortName"
                            DataValueField="DepartmentID" Width="41%" 
                            onselectedindexchanged="DepartmentList_SelectedIndexChanged" Height="22px">
                        </asp:DropDownList>
                        <asp:DropDownList ID="UnitList" runat="server" DataTextField="shortname" DataValueField="DepartmentID"
                            Width="57%" AutoPostBack="True" 
                            onselectedindexchanged="UnitList_SelectedIndexChanged" Height="22px">
                        </asp:DropDownList>
                        <%--   <span class="comment">车辆所属单位名称</span>--%>
              
                            </td>

                            <td>
                            </td>
                            <td style="width: 32px">
                            </td> 
                        </tr>
                        <tr>
                            <td>
                队伍名称：</td> 
                            <td>
               
                        <asp:DropDownList ID="ddlTownBasic" runat="server" DataTextField="Army" DataValueField="ID"
                            Width="99%" AutoPostBack="True" 
                            onselectedindexchanged="UnitList_SelectedIndexChanged" Height="22px" >
                        </asp:DropDownList>
              
                            </td>

                            <td>
                                &nbsp;</td>
                            <td style="width: 32px">
                                &nbsp;</td> 
                        </tr>
                        <tr>
                            <td>
                                原则：
                            </td> 
                            <td>
                                <asp:DropDownList ID="ddlType" runat="server" Height="22px" Width="616px" 
                                    AutoPostBack="True" onselectedindexchanged="ddlType_SelectedIndexChanged">
                                    <asp:ListItem>协议文件</asp:ListItem>
                                    <asp:ListItem>经济补偿</asp:ListItem>
                                    <asp:ListItem>经费保障</asp:ListItem>
                                    <asp:ListItem>执勤制度</asp:ListItem>
                                    <asp:ListItem>训练制度</asp:ListItem>
                                    <asp:ListItem>业务指导</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>                   
                            </td> 
                            <td style="width: 32px">
                                &nbsp;</td> 
                        </tr>
                        <tr style="height:auto"> 
                            <td>
                                名称：</td>
                            <td>
                                <asp:Label ID="lblInfo" runat="server" Width="620px" Height="44px"></asp:Label>
                            </td>
                            <td>  
                               &nbsp;</td>                          
                            <td style="width: 32px">
                                <asp:DropDownList ID="ddlName" runat="server" Height="25px" Width="50px" 
                                    Visible="False">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            
                            <td>
                                原件：
                            </td>
                            
                            <td colspan="3">
                                <asp:FileUpload ID="fuPhoto" runat="server" Height="22px" Width="615px" />
                            </td>
                            
                        </tr>                        
                        <tr>
                            
                            <td>
                                说明：                             </td>

                            <td colspan="3">
                                <asp:TextBox CssClass="txtwidth" ID="txtPhotoDetails" runat="server" TextMode="MultiLine"
                                    Width="620px" Height="121px"></asp:TextBox>
                            </td>                  
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;
                            </td>

                            <td colspan="3">
                                <asp:Button ID="btnUpLoad" runat="server" OnClick="btnUpLoad_Click" Text="上传" CausesValidation="False" /><asp:Label
                                    ID="lblimginfo" runat="server"></asp:Label>
                            </td>

                        </tr>

                    </table>

                    <asp:DataList ID="DltList" RepeatColumns="4" runat="server" RepeatDirection="Horizontal">

                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <div style="border: solid 1px #CCCCCC; padding: 3px; width: 160px; height: 120px;">
                                            <a target="_blank" href='<%# Eval("PicPath") %>'>
                                                <img src='<%# Eval("PicPath") %>' width="160px" height="120px" /></a>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                       <%# Eval("TownPicstypeID")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                       <%# Eval("PicDescript")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="btnEdit" runat="server" Visible="false" OnClientClick="return confirm('确定要修改此信息吗？')"
                                            ImageUrl="~/Images/Edit.gif" OnCommand="btnEdit_Command" CommandArgument='<%# Eval("id") %>'
                                            ToolTip="编辑" />&#160;&#160;&#160;
                                        <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/Delete.gif" OnCommand="btnDelete_Command"
                                            CommandArgument='<%# Eval("id") %>' OnClientClick="return confirm('确定要删除此图片吗？')"
                                            ToolTip="删除" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>

                    </asp:DataList>

                </contenttemplate>
</asp:Content>
